import React from 'react'
import {  Route } from 'react-router'
import { BrowserRouter } from 'react-router-dom'
import Login from './pages/login/login'
import Index from './container/index'
import createHistory from 'history/createBrowserHistory'

const history = createHistory()
//const location = history.location
let routes = (
    <BrowserRouter>
        <div>
            <Route exact path="/" component={Login}/>
            <Route  path="/login" component={Login} />
            <Route  path="/index" component={Index} />
            {/* <Redirect from="/login" to="/index"/> */}
        </div>
    </BrowserRouter>
);

export default routes;